package com.webside.points.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.points.mapper.PostTypeMapper;
import com.webside.points.model.PostTypeEntity;
import com.webside.points.service.PostTypeService;
@Service
public class PostTypeServiceImpl implements PostTypeService{
	
	@Autowired
	PostTypeMapper postTypeMapper;

	@Override
	public List<PostTypeEntity> findAll(PostTypeEntity postTypeEntity) {
		return postTypeMapper.findAll(postTypeEntity);
	}

	@Override
	public PostTypeEntity findById(int postTypeId) {
		return postTypeMapper.findById(postTypeId);
	}

	@Override
	public int insert(PostTypeEntity postTypeEntity) {
		return postTypeMapper.insert(postTypeEntity);
	}

	@Override
	public int delete(int postTypeId) {
		return postTypeMapper.delete(postTypeId);
	}

	@Override
	public int update(PostTypeEntity postTypeEntity) {
		return postTypeMapper.update(postTypeEntity);
	}

	@Override
	public int findCount(PostTypeEntity postTypeEntity) {
		return postTypeMapper.findCount(postTypeEntity);
	}

	@Override
	public List<PostTypeEntity> findPostType(String name) {
		return postTypeMapper.findPostType(name);
	}

	@Override
	public int updateBrowseNumber(PostTypeEntity postTypeEntity) {
		return postTypeMapper.updateBrowseNumber(postTypeEntity);
	}

}
